# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-stdaux
pkgver=1.1.0
pkgrel=0
pkgdesc="Auxiliary macros and functions for the C standard library"
url="https://github.com/c-util/c-stdaux"
arch="noarch"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-stdaux/archive/v$pkgver/c-stdaux-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
667e436e599249ed7d4f2e85dd39859eb3f2054d2f04b8fc9d64ddd75e40ff1724ae63a0327c5df1fab1f125ae084ecfced3767d84872493edac93eff2b6fa8e  c-stdaux-1.1.0.tar.gz
"
